import type { IllnessTime } from '@/enums'
import { flagOptions, timeOptions } from '@/services/constances'

// 处理患病周期
export const formatIllnessTime = (time: IllnessTime) =>
  timeOptions.find((item) => item.value === time)?.label
// 处理是否就诊
export const formatConsultFlag = (flag: 0 | 1) =>
  flagOptions.find((item) => item.value === flag)?.label
